{% extends "base.html" %}
{% block title %}
权限管理
{% endblock %}
{% block head %}
    <!-- Bootstrap Core CSS -->
    <link href="/static/lib/sb-admin/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/static/lib/sb-admin/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="/static/lib/sb-admin/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="/static/lib/sb-admin/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
{% endblock %}
{% block label %}
<h1 class="page-header">
        权限管理
    <a class="btn btn-default pull-right" href="/oa_system/add_permission/">添加</a>
</h1>
{% endblock %}
{% block contenter %}
<table class="table">
                        <thead>
                        <tr>
                            <th>名称</th>
                            <th>描述</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {% for p in per_list %}
                        <tr>
                            <td class="col-lg-4">{{p.per_name}}</td>
                            <td class="col-lg-4">{{p.pe_des}}</td>
                            <td class="col-lg-4">
                                <a href="/oa_system/edit_permission/{{p.id}}}/" class="btn btn-default">修改</a>
                                <a href="/oa_system/delete_permission/{{p.id}}/" class="btn btn-default">删除</a>
                                <a class="btn btn-default" href="/oa_system/position_permission/{{ p.id }}">关联职位</a>
                            </td>
                        </tr>
                        {% endfor %}
                        </tbody>
                    </table>
{% endblock %}
{% block body %}
<!-- /#wrapper -->

<!-- jQuery -->
<script src="/static/lib/sb-admin/vendor/jquery/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/static/lib/sb-admin/vendor/bootstrap/js/bootstrap.min.js"></script>

<!-- Metis Menu Plugin JavaScript -->
<script src="/static/lib/sb-admin/vendor/metisMenu/metisMenu.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="/static/lib/sb-admin/dist/js/sb-admin-2.js"></script>
{% endblock %}

